import java.util.Date;
import java.util.Scanner;
public class Xunhua {
    public static void main(String[] args) {
        Scanner scaner = new Scanner(System.in);
        Date time = new Date();
        while (true) {
            String info= scaner.next();
            if (info.equals("n")) {
                break;
                
            }else{
                
                System.out.println(time);
            }
        }
    }
}
